﻿using GalaSoft.MvvmLight;

namespace TransControlSystem.Model
{
    /// <summary>
    /// PLC地址
    /// </summary>
    public class PlcAddress : ObservableObject
    {
        /// <summary>
        /// 主键
        /// </summary>
        private int _Id;
        /// <summary>
        /// 主键
        /// </summary>
        public int Id
        {
            get { return _Id; }
            set
            {
                _Id = value;
                RaisePropertyChanged(() => Id);
            }
        }
        /// <summary>
        /// PLC地址
        /// </summary>
        private string _SiemensPlcAddress;
        /// <summary>
        /// PLC地址
        /// </summary>
        public string SiemensPlcAddress
        {
            get { return _SiemensPlcAddress; }
            set
            {
                _SiemensPlcAddress = value;
                RaisePropertyChanged(() => SiemensPlcAddress);
            }
        }
    }
}
